import  axios from  'axios'

export default class HisAuthRule {
    static hisAuthRule = null

    static getInstance(){
        if(this.hisAuthRule == null){
            this.hisAuthRule = new HisAuthRule()
        }
        return this.hisAuthRule
    }

    //查询医生基本信息
    list(){
        return axios.get(`http://localhost/authority/hisauthrule`)
    }
    //查询每个角色对应的资源

    listSource(roles) {
        return axios.get(`http://localhost/authority/menu`,{params:{"roles":roles}})
    }

    //更新资源
    updateSource(HisAuthGroupEntity){
        return axios.put(`http://localhost/authority/hisauthrule`,
            HisAuthGroupEntity
        )
    }

}
